/*
 *    Copyright (c) 2018-2025, haohanwork.com All rights reserved.
 */

export const tableOption = {
    border: true,
    index: true,
    indexLabel: '序号',
    stripe: true,
    menuAlign: 'center',
    menuWidth: 120,
    align: 'center',
    viewBtn: true,
    delBtn: false,
    addBtn: false,
    editBtn: false,
    column: [
        //  {
        //   label: '平台商家id',
        //   prop: 'pmId'
        // },
        {
            label: '结算记录编号',
            prop: 'settlementId'
        },
        {
            label: '结算类型',
            prop: 'settlementType',
            type: 'select',
            dicUrl: '/admin/dict/type/scm_settlement_type'
        },
        {
            label: '结算金额',
            prop: 'settlementAmount'
        },
        //  {
        //   label: '结算开始日期',
        //   prop: 'settlementBeginDate',
        //   type: "datetime",
        //   format: "yyyy-MM-dd HH:mm:ss",
        //   valueFormat: "yyyy-MM-dd HH:mm:ss"
        // },
        //  {
        //   label: '结算结束日期',
        //   prop: 'settlementEndDate',
        //   type: "datetime",
        //   format: "yyyy-MM-dd HH:mm:ss",
        //   valueFormat: "yyyy-MM-dd HH:mm:ss"
        // },
        {
            label: '支付方式',
            prop: 'payType',
            type: 'select',
            dicUrl: '/admin/dict/type/scm_pay_type',
            search: true
        },
        {
            label: '付款日期',
            prop: 'payDate',
            type: "datetime",
            format: "yyyy-MM-dd HH:mm:ss",
            valueFormat: "yyyy-MM-dd HH:mm:ss"
        },
        //  {
        //   label: '结算公司类型:采购商/供应商',
        //   prop: 'companyType',
        //   type: 'select',
        //   dicUrl: '/admin/dict/type/scm_company_type',
        //   search: true
        // },
        {
            label: '结算公司名称',
            prop: 'companyName'
        },
        {
            label: '结款人名称',
            prop: 'companyOperator'
        },
        {
            label: '结算凭证图片',
            prop: 'settlementImg',
            type: 'upload',
            imgWidth: 100,
            imgHeight: 100,
            listType: 'picture-img',
            hide: true
        },
        {
            label: '结算说明',
            prop: 'settlementDesc',
            hide: true
        },
        {
            label: '货款单号',
            prop: 'paymentSn'
        },
        {
            label: '经办人名称',
            prop: 'operator'
        },{
            label: '是否结算',
            prop: 'status',
            type: 'select',
            dicUrl: '/admin/dict/type/scm_yes_no',
            sortable: true,
            search: true
        },
        {
            label: '更新时间',
            prop: 'updateDate',
            disabled: true,
            hide: true
        },
        {
            label: '备注信息',
            prop: 'remarks',
            type: 'textarea',
            hide: true
        }
    ]
}
